import request from "@/utils/request";

// 1.获取品牌分页列表
export const reqGetBrandList = (page = 1, limit = 5) => {
    return request.get(`/admin/product/baseTrademark/${page}/${limit}`);
};
// // 2.获取所有品牌列表
// export const reqGetAllBrandList = () => {
//     return request.get(`/admin/product/baseTrademark/getTrademarkList`);
// };
// 3.添加品牌
export const reqAddBrand = (data) => {
    return request.post(`/admin/product/baseTrademark/save`, data);
};
// 4.上传图片请求
// export const reqUploadImg = (data) => {
//     request.put(`/admin/product/upload`, data);
// };
// 4.修改品牌
export const reqEditBrand = (data) => {
    return request.put(`/admin/product/baseTrademark/update`, data);
};
// 5.删除品牌
export const reqDeleteBrand = (id) => {
    return request.delete(`/admin/product/baseTrademark/remove/${id}`);
};
